﻿@model IQueryable<Orion.Models.NewsArticle>

@{
    ViewBag.Title = "IRIS - Hjálp";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<section id="main_content_wrapper">
    <section id="main_content">
        <h1>Algengar spurningar</h1>
        <p>Smelltu á spurningu til að sjá svar við henni.</p>

         <ol> 
         @{var iter = 1;}
            @foreach (var ab in Model)
            {  
                
                    <li><h3><a href ="#@iter">@ab.Title</a></h3></li>                                
                iter++;          
            }
          </ol>
        </section>
            <section id="main_content">
            <h1>Svör</h1>
               <ol id="svor"> 
                
                @{var biter = 1;}
                @foreach (var ab in Model)
                {
                    <li><h3 id ="@biter">@ab.Title</h3>
                    <p>@Html.Raw(ab.TextBody)</p></li>
                     biter++;
                }
                </ol>
                 
            </section>
    </section>
</section>
